﻿using Autodesk.Revit.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreDB.Extensions
{
    public static class ElementExtension
    {
        #region Location系列方法
        public static Curve LocationCurve(this Element element)
        {
            LocationCurve lc = element.Location as LocationCurve;
            return lc.Curve;
        }
        public static Line LocationLine(this Element element)
        {
            return element.LocationCurve() as Line;
        }
        public static Arc LocationArc(this Element element)
        {
            return element.LocationCurve() as Arc;
        }
        #endregion






    }
}
